#ifndef BLURDIALOG_H
#define BLURDIALOG_H

#include <QDialog>

class QPushButton;
class QSlider;
class QLabel;
class QCheckBox;

class BlurDialog : public QDialog
{
    Q_OBJECT
public:
    explicit BlurDialog(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
    virtual ~BlurDialog();

private:
    void initDialog();
    void connetSignalToSlots();
    virtual void changeEvent(QEvent *event);
    void initTrans();

    void execBlur();

public slots:
    void blurXSlot(int value);
    void blurYSlot(int value);
    void confirmSlot();

private:
    QCheckBox* m_pSyncCheckBox;

    QLabel* m_pXLabel;
    QLabel* m_pYLabel;
    QSlider* m_pXSlider;
    QSlider* m_pYSlider;

    int m_nX;
    int m_nY;

    QPushButton* m_pButton;
};

#endif // BLURDIALOG_H
